package cn.edu.cdu.farmdeal.domain;

import java.math.BigDecimal;
import java.util.Date;

public class Product {
    private String shopName;

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    private Integer id;
    //该产品的总的下单量
    private int cnt;

    public int getCnt() {
        return cnt;
    }

    public void setCnt(int cnt) {
        this.cnt = cnt;
    }
    //相似度
    private double w;

    public double getW() {
        return w;
    }

    public void setW(double w) {
        this.w = w;
    }

    private String productImg;

    private String name;

    private BigDecimal oldPrice;

    private BigDecimal newPrice;

    private String isMiaosha;

    private String stock;

    private String progress;

    private Integer commentNum;

    private Integer collectNum;

    private String saleNum;

    private String sendAddress;

    private String specification;

    private String startWholesale;

    private Integer shopId;

    private Integer miaoshaId;

    private Integer kindChildId;

    private Date updateTime;

    private String updateTimeString;

    public String getUpdateTimeString() {
        return updateTimeString;
    }

    public void setUpdateTimeString(String updateTimeString) {
        this.updateTimeString = updateTimeString;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProductImg() {
        return productImg;
    }

    public void setProductImg(String productImg) {
        this.productImg = productImg;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getOldPrice() {
        return oldPrice;
    }

    public void setOldPrice(BigDecimal oldPrice) {
        this.oldPrice = oldPrice;
    }

    public BigDecimal getNewPrice() {
        return newPrice;
    }

    public void setNewPrice(BigDecimal newPrice) {
        this.newPrice = newPrice;
    }

    public String getIsMiaosha() {
        return isMiaosha;
    }

    public void setIsMiaosha(String isMiaosha) {
        this.isMiaosha = isMiaosha;
    }

    public String getStock() {
        return stock;
    }

    public void setStock(String stock) {
        this.stock = stock;
    }

    public String getProgress() {
        return progress;
    }

    public void setProgress(String progress) {
        this.progress = progress;
    }

    public Integer getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(Integer commentNum) {
        this.commentNum = commentNum;
    }

    public Integer getCollectNum() {
        return collectNum;
    }

    public void setCollectNum(Integer collectNum) {
        this.collectNum = collectNum;
    }

    public String getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(String saleNum) {
        this.saleNum = saleNum;
    }

    public String getSendAddress() {
        return sendAddress;
    }

    public void setSendAddress(String sendAddress) {
        this.sendAddress = sendAddress;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public String getStartWholesale() {
        return startWholesale;
    }

    public void setStartWholesale(String startWholesale) {
        this.startWholesale = startWholesale;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public Integer getMiaoshaId() {
        return miaoshaId;
    }

    public void setMiaoshaId(Integer miaoshaId) {
        this.miaoshaId = miaoshaId;
    }

    public Integer getKindChildId() {
        return kindChildId;
    }

    public void setKindChildId(Integer kindChildId) {
        this.kindChildId = kindChildId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", productImg=").append(productImg);
        sb.append(", name=").append(name);
        sb.append(", oldPrice=").append(oldPrice);
        sb.append(", newPrice=").append(newPrice);
        sb.append(", isMiaosha=").append(isMiaosha);
        sb.append(", stock=").append(stock);
        sb.append(", progress=").append(progress);
        sb.append(", commentNum=").append(commentNum);
        sb.append(", collectNum=").append(collectNum);
        sb.append(", saleNum=").append(saleNum);
        sb.append(", sendAddress=").append(sendAddress);
        sb.append(", specification=").append(specification);
        sb.append(", startWholesale=").append(startWholesale);
        sb.append(", shopId=").append(shopId);
        sb.append(", miaoshaId=").append(miaoshaId);
        sb.append(", kindChildId=").append(kindChildId);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}